package test31;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2023-04-24
 * Time: 14:49
 */

import java.io.*;

public class Main1 {
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));

    public static void main(String[] args) throws IOException {
        String str = null;
        while ((str = br.readLine()) != null && !str.equals("")) {
            int num = Integer.parseInt(str);
            StringBuilder sb = new StringBuilder();
            sb.append(num).append(" = ");
            for (int i = 2; i <= num; i++) {
                if (num % i == 0) {
                    while (num % i == 0) {
                        sb.append(i).append(" * ");
                        num /= i;
                    }
                    if (num == 1) {
                        sb.deleteCharAt(sb.length() - 1);
                        sb.deleteCharAt(sb.length() - 1);
                        break;
                    }
                }
            }
            bw.write(sb.toString() + "\n");
            bw.flush();
        }
        br.close();
        bw.close();
    }
}
